<template>
  <div class="table-page-search-wrapper">
    <el-form :model="form" ref="form" :inline="true">
      <el-row :gutter="16">
        <el-col :span="6">
          <el-form-item label="评价等级名称" prop="internalLevelName">
            <el-input v-model="form.internalLevelName" placeholder="输入评价等级名称搜索" />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item>
            <el-button type="primary" @click="handleSearch">查询</el-button>
            <el-button @click="handleReset">重置</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      form: {
        internalLevelName: null
      }
    }
  },
  methods: {
    handleSearch() {
      this.$emit('search', this.form)
    },
    handleReset() {
      this.$refs.form.resetFields()
      this.$emit('search', this.form)
    }
  }
}
</script>

<style scoped>
.el-form-item {
  margin-bottom: 0;
}
</style>